package priorityQueue;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        //最大小k个数测试
        int[] arr = {1, 3, 5, 7, 2, 4, 6, 8};

        PriorityQueue solution = new PriorityQueue();

        System.out.println(Arrays.toString(solution.smallestK(arr, 4)));
        System.out.println(Arrays.toString(solution.smallestK2(arr, 4)));
        System.out.println(Arrays.toString(solution.smallestK3(arr,4)));
    }
}
